package com.kl.mapper;

import com.kl.entity.MenuRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2021-10-29
 */
@Mapper
@Repository
public interface MenuRoleMapper extends BaseMapper<MenuRole> {

    List<Integer> selectRoleMenuById(Integer rid);

    int insertBatch(@Param("rid")Integer rid,@Param("mids") Integer[] mids);
}
